package com.redepronik.medisys.cithis.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the consultaexamenes database table.
 * 
 */
@Entity
@Table(name="consultaexamenes")
@NamedQuery(name="Consultaexamene.findAll", query="SELECT c FROM Consultaexamene c")
public class ConsultaExamen implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONSULTAEXAMENES_CONSULTAEXAMENID_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONSULTAEXAMENES_CONSULTAEXAMENID_GENERATOR")
	@Column(unique=true, nullable=false)
	private Long consultaexamenid;

	//bi-directional many-to-one association to Consulta
	@ManyToOne
	@JoinColumn(name="consultaid", nullable=false)
	private Consulta consulta;

	//bi-directional many-to-one association to Examene
	@ManyToOne
	@JoinColumn(name="examenid", nullable=false)
	private Examen examene;

	public ConsultaExamen() {
	}

	public Long getConsultaexamenid() {
		return this.consultaexamenid;
	}

	public void setConsultaexamenid(Long consultaexamenid) {
		this.consultaexamenid = consultaexamenid;
	}

	public Consulta getConsulta() {
		return this.consulta;
	}

	public void setConsulta(Consulta consulta) {
		this.consulta = consulta;
	}

	public Examen getExamene() {
		return this.examene;
	}

	public void setExamene(Examen examene) {
		this.examene = examene;
	}

}